<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title></title>
	<link rel="stylesheet" href="http://127.0.0.1/my/wasai/Static/bootstrap/css/bootstrap.min.css" />
	<link rel="stylesheet" href="./Css/common.css" />
	<style type="text/css">
		body{
			margin-bottom: 100px;
			font-family: "微软雅黑";
		}
	</style>
</head>
<body>
	<div class="container-fluid">
	<div class="row-fluid">
	<div class="span12">

	<table class="table table-bordered table-hover">
		<tr style="background: #F5F5F5;">
			<th>ID</th>
			<th style="width: 450px;">商品名称</th>
			<th>价格</th>
			<th>库存</th>
			<th>点击次数</th>
			<th>添加时间</th>
			<th>操作</th>
		</tr>
		<?php foreach ($goodData as $k=>$v){?>
	        <tr style="background: #C4E3F3;font-size: 14px;">
				<th><?php echo $v['gid'];?></th>
				<th style="color: #08C;"><a href=""><?php echo $v['gname'];?></a></th>
				<th><?php echo $v['shopprice'];?></th>
				<th>库存</th>
				<th><?php echo $v['click'];?></th>
				<th><?php echo date('Y-m-d',$v['time']);?></th>
				<th>
				    <a href="<?php echo U('Admin/Goodslist/index',array('gid'=>$v['gid'],'tid'=>$v['tid']));?>" class="btn btn-success"><i class="icon-th icon-white"></i>货品列表</a>
					<a href="<?php echo U('Admin/Goods/edit',array('gid'=>$v['gid'],'tid'=>$v['tid']));?>" class="btn btn-warning"><i class="icon-pencil icon-white"></i>修改</a>
					<a href="<?php echo U('Admin/Goods/del',array('gid'=>$v['gid'],'tid'=>$v['tid']));?>" class="btn btn-danger"><i class="icon-trash icon-white"></i>删除</a>
				</th>
			</tr>
		<?php }?>
			
	</table>

	</div>
	</div>
	</div>
</body>
</html>